package com.cy.ppj.model.ao.order;

import java.math.BigDecimal;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单
 * @author: tanyilin
 * @create: 2018年7月20日 下午8:15:58
 */
@Data
@ApiModel("订单")
public class OrderAddAO {

	@ApiModelProperty(value = "产品ID", example = "0", required = true)
	@NotNull(message = "产品ID不可为空")
	private Long productId;
	
	@ApiModelProperty(value = "客户姓名", required = true)
	@NotEmpty(message = "客户姓名不可为空")
	private String name;
	
	@ApiModelProperty(value = "客户手机号码", required = true)
	@NotEmpty(message = "客户手机号码不可为空")
	private String mobile;

	@ApiModelProperty(value = "客户身份证号码", required = true)
	@NotEmpty(message = "客户身份证号码不可为空")
	private String idNo;
	
	@ApiModelProperty(value = "借款金额", example = "0.00")
	private BigDecimal loanAmount;
	
	@ApiModelProperty(value = "期限", example = "12")
	private Integer periods;
	
}
